<?php
class User{
	var $uid = "";
	var $loginName = "";
	var $userName = "";
	var $nickName = "";
	var $password = "";
	var $sex = 1;
	var $email = "";
	var $tel = "";
	var $address = "";
	var $status = 1;
	var $regDate = "";
	var $lastUpdDate = "";
	
	function __construct() {
		$name = "User".func_num_args();
		$args = func_get_args();
		if(method_exists($this, $name)){
			$this->__call($name,$args);
		}
	}
	
	function __call($name, $arg) {
		return call_user_func_array(array($this, $name), $arg);
	}

	private function User1($loginName){
		$this->loginName = $loginName;
	}
	
	private function User2($loginName,$password){
		$this->loginName = $loginName;
		$this->password = $password;
	}
	
	private function User10($uid,$logName,$userName,$nickName,$sex,$md5_pwd,$email,$tel,$address,$regDate){
		$this->uid = $uid;
		$this->loginName = $logName;
		$this->nickName = $nickName;
		$this->userName = $userName;
		$this->password = $md5_pwd;
		$this->sex = $sex;
		$this->email = $email;
		$this->tel = $tel;
		$this->address = $address;
		$this->regDate = $regDate;
		$this->lastUpdDate = $regDate;
	}
}